import request from "@/utils/request"

export const queryAll=()=>request.get("/depts")

export const addApi=(data)=>request.post("/depts",data)

export const queryByIdApi=(id)=>request.get(`/depts/${id}`)

export const updateApi=(data)=>request.put("/depts",data)

export const deleteApi=(id)=>request.delete(`/depts?id=${id}`)